﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.DataBase.MyProject.Domain.Procurements
{
    /// <summary>
    /// 采购订单表
    /// </summary>
    public class Purchaseorder
    {

        /// <summary>
        /// 采购订单id
        /// </summary>
        [Key]
        public int  PurchaseOrderId { get; set; }
        /// <summary>
        /// 单据编码
        /// </summary>
        public string DocumentCode { get; set; }
        /// <summary>
        /// /单据日期
        /// </summary>
        public DateTime DocumentStatus { get; set; }
        /// <summary>
        /// 单据状态
        /// </summary>
        public string BusinessStatus { get; set; }
        /// <summary>
        /// 业务状态(正常,挂起,手工关闭,系统关闭)
        /// </summary>
        public string BusinessType { get; set; }
        /// <summary>
        /// 业务类型(外键)
        /// </summary>
        public int Documentid { get; set; }
        /// <summary>
        /// 单据类型
        /// </summary>
        public string PurchasingDe { get; set; }
        /// <summary>
        /// 采购部门(外键)
        /// </summary>
        public string Purchasingid { get; set; }
        /// <summary>
        /// 采购人员
        /// </summary>
        public string Operator { get; set; }
        /// <summary>
        /// 操作员
        /// </summary>
        public string Auditor { get; set; }
        /// <summary>
        /// 审核员
        /// </summary>
        public string AuditDate { get; set; }
        /// <summary>
        /// 审核日期
        /// </summary>
        public DateTime MaterialData { get; set; }
        
        /// <summary>
        /// 用料需求
        /// </summary>
        public string MaterialRire { get; set; }
        /// <summary>
        /// 供方id(外键)
        /// </summary>
        public string Supid { get; set; }
        /// <summary>r
        /// 到货日期
        /// </summary>
        public string ArrivalDate { get; set; }
        /// <summary>
        /// 采购合同
        /// </summary>
        public string PurchaseContract { get; set; }
        /// <summary>
        /// 备注信息
        /// </summary>
        public string RemarksInfor { get; set; }


    }
}
